<div class="main">
<link type="text/css" rel="stylesheet" href="{$themeDir}public/index.css" />
<?php 
unset($where);
$where['lang'] = LANG_ID;
$where['status'] = 1;
$where['fid'] = 3;
$slides = M("SlideData")->where($where)->order('listorder desc , id desc')->select();

?>
<!-- top -->
    <!-- 轮播背景 -->
    <div class="top-slider">
        <ul class="slider-banner">
         <?php foreach($slides as $slide){?>
			  <li style="background: transparent url(<?php echo $slide['pic']?>) no-repeat center top;width: 100%;">
                <a href="#" target="_blank" title="">
          		 <img src="<?php echo $themeDir;?>public/src/img/ico_public.png" width="100%" height="653" border="0"/>
       			 </a>
            </li>
			
            <?php }?>
            <li style="background: transparent url({$themeDir}public/src/img/slider_01.jpg) no-repeat center top;width: 100%;">
<!--                 <a href="#" target="_blank" title=""> -->
<!--            <img src="{$themeDir}public/src/img/ico_public.png" width="100%" height="653" border="0"/> -->
<!--         </a> -->
<!--             </li> -->
            <li style="background: transparent url({$themeDir}public/src/img/slider_02.jpg) no-repeat center top;width: 100%;">
<!--                 <a href="#" target="_blank" title=""> -->
<!--            <img src="{$themeDir}public/src/img/ico_public.png" width="100%" height="653" border="0"/> -->
<!--         </a> -->
<!--             </li> -->
            <li style="background: transparent url({$themeDir}public/src/img/slider_03.jpg) no-repeat center top;width: 100%;">
<!--                 <a href="#" target="_blank" title=""> -->
<!--            <img src="{$themeDir}public/src/img/ico_public.png" width="100%" height="653" border="0"/> -->
<!--         </a> -->
<!--             </li> -->
        </ul>
        <!-- 页码 -->
        <div class="slider-pager" id="bx-pager">
            <a href="" class="pager-links" data-slide-index="0" hideFocus="true">
            <img src="{$themeDir}public/src/img/ico_public.png" width="16" height="16" border="0"/>
        </a>
            <a href="" class="pager-links" data-slide-index="1" hideFocus="true">
          <img src="{$themeDir}public/src/img/ico_public.png" width="16" height="16" border="0"/>
        </a>
            <a href="" class="pager-links" data-slide-index="0" hideFocus="true">
           <img src="{$themeDir}public/src/img/ico_public.png" width="16" height="16" border="0"/>
        </a>
        </div>
        <!-- 页码 -->
    </div>
    <!-- 轮播背景 -->
<div id="slideBox" class="slideBox" style="display:none">
	<span class="prev"></span>
	<span class="next"></span>
	<div class="hd">
		<ul>
			<?php 
			$i = 1;
			foreach($slides as $slide){
			?>
			<li><?php echo $i; ?></li>
		<?php $i++; } ?>
		</ul>
	</div>
	<div class="bd">
		<ul>
		<?php 
		foreach($slides as $slide){
		?>
			<li><a href="<?php echo $slide['link']; ?>" target="_blank">
				<img src="<?php echo $slide['pic']; ?>" alt="<?php echo $slide['title']; ?>" title="<?php echo $slide['title']; ?>" />				
			</a></li>
		<?php } ?>
		</ul>
	</div>
</div>
 <!-- 导航图片 -->
    <div class="wrap nav-pic">
        <ul>
            <li class="on">
                <a href="#" target="_blank">
		      <img src="{$themeDir}public/src/img/h_0.jpg" />
		   </a>
            </li>
            <li>
                <a href="#" target="_blank">
		      <img src="{$themeDir}public/src/img/h_01.jpg" />
		   </a>
            </li>
            <li>
                <a href="#" target="_blank">
		      <img src="{$themeDir}public/src/img/h_02.jpg" />
		   </a>
            </li>
            <li>
                <a href="#" target="_blank">
		      <img src="{$themeDir}public/src/img/h_03.jpg" />
		   </a>
            </li>
        </ul>
    </div>
     <!-- 导航图片 -->
    <!-- 公司简介 -->
    <div class="wrap company-des">
        <h6 class="company-logo">
        <?php 
unset($where);
$where['lang'] = LANG_ID;
$where['status'] = 1;
$where['fid'] = 5;
$slides = M("SlideData")->where($where)->order('listorder desc , id desc')->select();

?>
<!-- {$themeDir}public/src/img/h_04.jpg -->
      <img src="<?php echo $slides[0]['small']?>" width="148" height="98" border="0"/>
   </h6>
        <div class="company-txt">
<!--             <p>深圳金芽科技有限公司坐落于改革开放的前沿-深圳，是一家专注于服务于移动类产品的高科技公司，产品涵盖数码3C、移动电源、车载充电、蓝牙音响、智能硬件等关乎生活服务方方面面的科技产品。</p> -->
<!--             <p> -->
<!--                 服务大众是金芽科技的立足之本，随着国外代理公司的不断增加，金芽科技产品已经走出国门，服务于全世界用户。 2017年5月金芽科技再次腾飞，公司与创维移动通信技术（深圳）有限公司达成战略合作，强强联手， 全权代理推广 SKYFONE/知乐（创维移动通信)</p> -->
       <p><?php echo $slides[0]['description']?></p>
        <p><?php echo $slides[0]['data']?></p>
        </div>
    </div>
    <!-- 公司简介 -->
    <!-- 服务列表 -->
    <?php 
unset($where);
$where['lang'] = LANG_ID;
$where['status'] = 1;
$where['id'] = 13;
$blocks = M("blockquote")->where($where)->select();
?>
    <div class="wrap company-server">
        <ul>
            <li>
                <div class="server-pic">
                    <a href="#" target="_blank">
                    <!--{$themeDir}public/src/img/h_05.png thumb -->
	              <img src="<?php echo $blocks[0]['thumb']?>">
	            </a>
                </div>
                
                <div class="server-txt">
                    <p class="c-txt"><?php echo $blocks[0]['description'] ?></p>
                    <p class="e-txt"><?php echo $blocks[0]['content'] ?></p>
                </div>
            </li>

              <?php 
              unset($blocks);
$where['lang'] = LANG_ID;
$where['status'] = 1;
$where['id'] = 14;
$blocks = M("blockquote")->where($where)->select();

?>
            <li>
                <div class="server-pic">
                    <a href="#" target="_blank">
                    <!--{$themeDir}public/src/img/h_05.png thumb -->
	              <img src="<?php echo $blocks[0]['thumb']?>">
	            </a>
                </div>        
                <div class="server-txt">
                    <p class="c-txt"><?php echo $blocks[0]['description'] ?></p>
                    <p class="e-txt"><?php echo $blocks[0]['content'] ?></p>
                </div>
            </li>
             <?php 
              unset($blocks);
$where['lang'] = LANG_ID;
$where['status'] = 1;
$where['id'] = 15;
$blocks = M("blockquote")->where($where)->select();

?>
            <li>
                <div class="server-pic">
                    <a href="#" target="_blank">
                    <!--{$themeDir}public/src/img/h_05.png thumb -->
	              <img src="<?php echo $blocks[0]['thumb']?>">
	            </a>
                </div>        
                <div class="server-txt">
                    <p class="c-txt"><?php echo $blocks[0]['description'] ?></p>
                    <p class="e-txt"><?php echo $blocks[0]['content'] ?></p>
                </div>
            </li>
        </ul>
    </div>
    <!-- 服务列表 -->
    <!-- 广告图片 -->
          <?php 
              unset($blocks);
$where['lang'] = LANG_ID;
$where['status'] = 1;
$where['id'] = 16;
$blocks = M("blockquote")->where($where)->select();

?>  
    <div class="wrap company-banner">
        <img src="<?php echo $blocks[0]['thumb']?>" />
    </div>
    
    <!-- 广告图片 -->
<script type="text/javascript" src="/public/jscript/jquery.SuperSlide.2.1.1.js"></script>
<script type="text/javascript">
<!--jQuery(".slideBox").slide({mainCell:".bd ul",effect: "left",interTime: 2500,autoPlay:true});-->
</script>
</div>